import java.util.Scanner;

public class Main {
    public static void main(String[] args) {
        int n= new Scanner(System.in).nextInt();
        int sum = 1;
        for (int i = 0; i < n; i++) {
            sum = sum*2;
        }
        System.out.println("2^"+n+" = "+sum);
    }
}
